package com.atmilan.quartz.sync.pull.buyer.service.impl;

import org.springframework.stereotype.Service;

import com.atmilan.quartz.model.entity.buyer.BuyerCate;
import com.atmilan.quartz.sync.pull.buyer.mapper.BuyerCateMapper;
import com.atmilan.quartz.sync.pull.buyer.service.IBuyerCateService;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hupeng
 * @since 2020-04-29
 */
@Service
public class BuyerCateServiceImpl extends ServiceImpl<BuyerCateMapper, BuyerCate> implements IBuyerCateService {

    @Override
    public BuyerCate getByCate(Integer catId) {
        return this.getOne(Wrappers.<BuyerCate>lambdaQuery()
                .eq(BuyerCate::getCatId, catId), false);
    }
}
